home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 857 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.4 KB

  1. Path: engnews1.Eng.Sun.COM!usenet
  2. From: clamage@Eng.sun.com (Steve Clamage)
  3. Newsgroups: comp.std.c++
  4. Subject: Re: constness of private members and methods
  5. Date: 26 Mar 1996 00:29:59 GMT
  6. Organization: Sun Microsystems Inc.
  7. Approved: clamage@eng.sun.com (comp.std.c++)
  8. Message-ID: <4j79dg$l9i@engnews1.Eng.Sun.COM>
  9. References: <4j49e0$8fo@dub-news-svc-4.compuserve.com>
  10. Reply-To: clamage@Eng.sun.com
  11. NNTP-Posting-Host: taumet.eng.sun.com
  12. X-Nntp-Posting-Host: taumet.eng.sun.com
  13. Content-Length: 546
  14. X-Lines: 17
  15.  
  16. In article 8fo@dub-news-svc-4.compuserve.com, Philippe Verdy 
  17.  
  18. >Is there any way (or proposal) to explicitly specify members
  19. >of a class definition which are relaxed on constness certi-
  20. >fication ?
  21. >
  22. >Would not it be great if we could simply define such members
  23. >as "unconst" like in the following example :
  24.  
  25. The C++ draft standard has for some time included the keyword "mutable".
  26. A mutable data member may be modified by any member function,
  27. even if the object or the member function is const.
  28.  
  29. ---
  30. Steve Clamage, stephen.clamage@eng.sun.com
  31.  
  32.  
  33.  
  34.  
  35. [ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
  36. [ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
  37. [ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
  38. [ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
  39. [ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]
  40.